package com.pair.micro.fee.modules.charge.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.vo.TransPojo;
import com.pair.micro.common.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@Schema(description = "小区管理")
public class GardenGridVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Integer id;
    @Schema(description = "名称", required = true)
    @NotBlank(message = "名称不能为空")
    private String name;

    @Schema(description = "类型", required = true)
    @NotBlank(message = "类型不能为空")
    private Integer type;

    @Schema(description = "上级ID", required = true)
    @NotBlank(message = "上级ID不能为空")
    private Integer parentId;


    @Schema(description = "虚拟位置 1.是 0.否 默认为否")
    private Integer virtualPosition;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

}
